package com.lingxu.api.ztb.mapper;

import com.lingxu.api.ztb.model.LandUseSpecialReview;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lingxu.api.ztb.model.vo.LandUseSpecialReviewVO;
import com.lingxu.api.ztb.model.vo.PreDesignReviewVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;


import java.util.List;

/**
 * 用地专题审查表 Mapper接口
 *
 * @author admin
 * @since 2025-08-14
 */
@Mapper
public interface LandUseSpecialReviewMapper extends BaseMapper<LandUseSpecialReview> {
    /**
     * 查询用地专题审查表
     *
     * @return
     */
    List<LandUseSpecialReviewVO> selectLandUseSpecialReviewList(@Param("query") LandUseSpecialReviewVO vo);

    IPage<LandUseSpecialReviewVO> pageList(@Param("page") Page<LandUseSpecialReviewVO> page, @Param("query") LandUseSpecialReviewVO vo);

    List<LandUseSpecialReviewVO> getDataForExport(@Param("query") LandUseSpecialReviewVO vo);

    void createTempTable(@Param("batchFlag")String batchFlag);
    void insertTempTable(@Param("list") List<LandUseSpecialReviewVO> dataList, @Param("batchFlag")String batchFlag);
    void insertTable(@Param("batchFlag")String batchFlag);
    void dropTempTable(@Param("batchFlag")String batchFlag);

    int countUnionList(@Param("query") LandUseSpecialReviewVO query);

    List<LandUseSpecialReviewVO> selectUnionList(@Param("query") LandUseSpecialReviewVO query, @Param("offset") int offset, @Param("pageSize") int pageSize);
}
